package com.holly.unit.gen.starter.engine;

import cn.hutool.extra.template.engine.velocity.VelocityEngine;
import com.holly.unit.gen.starter.config.builder.ConfigBuilder;

/**
 * 类描述: Velocity 模板引擎实现文件输出
 *
 * @author fxr
 * @version 1.0.0
 * @date 2022/1/21 16:14
 */
public class VelocityTemplateEngine extends AbstractTemplateEngine {

    private static final String DOT_VM = ".vm";
    private VelocityEngine velocityEngine;

    @Override
    public VelocityTemplateEngine init(ConfigBuilder configBuilder) {
        super.init(configBuilder);
        if (null == velocityEngine) {
            velocityEngine = new VelocityEngine();
        }
        return this;
    }


}
